cmake_minimum_required(VERSION 2.6)
PROJECT(SA2D_dom)


SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)


SET(CMAKE_C_FLAGS_RELEASE "-O3 -ffast-math -std=gnu99 -Wall")

SET (CMAKE_BUILD_TYPE Release)

SET(CurrentStatic sadom)

SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ../lib/sadom)


SET(Headers
Sa2dDom.h
)
SET(Sources
agentSet.cpp
arena.cpp
angle.cpp
border.cpp
circularGeometry.cpp
configurationfile.cpp
geometry.cpp
performer.cpp
physicalProperties.cpp
physicsEngine.cpp
position.cpp
render.cpp
rotation.cpp
set.cpp
shape.cpp
simulation.cpp
singularity.cpp
vertex.cpp
windowSettings.cpp
)
set_source_files_properties(${Sources} PROPERTIES LANGUAGE CXX)
set_source_files_properties(${Headers} PROPERTIES LANGUAGE CXX)



ADD_LIBRARY(${CurrentStatic} STATIC
 ${Headers}
 ${Sources}
)





